import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,

  state: () => {
    return {
      list: [...constantRoutes]
    }
  },
  mutations: {
    setList(state, data) {
      // state.list.push(...data)
      state.list = [...constantRoutes, ...data]
    },
    clear(state, data) {
      state.list = data
    }
  }
}
